/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_driver.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 司机管理Entity
 * @author ZhangYangZe
 * @version 2017-05-13
 */
public class TbDriver extends DataEntity<TbDriver> {
	
	private static final long serialVersionUID = 1L;
	private String driverName;		// 真实姓名
//	private String driverShortName;		// 简称
	private String driverIdCode;		// 身份证号码
	private String driverTell;		// 电话
	private String driverPwd;//司机密码
	private String driverState;//是否有效
	private String driverType;//司机状态0闲置1等待出车2运输中
	private String newPassword;//修改密码时用
	private Integer isQualificationCertificate;//使用拥有从业资格证
	private Integer isDriverLicense;//是否拥有驾驶证
	private Integer isEscort;//是否拥有押运证
	private Integer isPosts;//是否拥有上岗证
	
	
	
	public TbDriver() {
		super();
	}

	public TbDriver(String id){
		super(id);
	}

	@Length(min=1, max=50, message="真实姓名长度必须介于 1 和 50 之间")
	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}
	
//	@Length(min=0, max=20, message="简称长度必须介于 0 和 20 之间")
//	public String getDriverShortName() {
//		return driverShortName;
//	}
//
//	public void setDriverShortName(String driverShortName) {
//		this.driverShortName = driverShortName;
//	}
	
	
	@Length(min=1, max=18, message="身份证号码长度必须介于 1 和 18 之间")
	public String getDriverIdCode() {
		return driverIdCode;
	}

	public Integer getIsQualificationCertificate() {
		return isQualificationCertificate;
	}

	public void setIsQualificationCertificate(Integer isQualificationCertificate) {
		this.isQualificationCertificate = isQualificationCertificate;
	}

	public Integer getIsDriverLicense() {
		return isDriverLicense;
	}

	public void setIsDriverLicense(Integer isDriverLicense) {
		this.isDriverLicense = isDriverLicense;
	}

	public void setDriverIdCode(String driverIdCode) {
		this.driverIdCode = driverIdCode;
	}
	
	@Length(min=1, max=11, message="电话长度必须介于 1 和 11 之间")
	public String getDriverTell() {
		return driverTell;
	}

	public void setDriverTell(String driverTell) {
		this.driverTell = driverTell;
	}

	public String getDriverPwd() {
		return driverPwd;
	}

	public void setDriverPwd(String driverPwd) {
		this.driverPwd = driverPwd;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public Integer getIsEscort() {
		return isEscort;
	}

	public void setIsEscort(Integer isEscort) {
		this.isEscort = isEscort;
	}

	public Integer getIsPosts() {
		return isPosts;
	}

	public void setIsPosts(Integer isPosts) {
		this.isPosts = isPosts;
	}

	public String getDriverState() {
		return driverState;
	}

	public void setDriverState(String driverState) {
		this.driverState = driverState;
	}

	public String getDriverType() {
		return driverType;
	}

	public void setDriverType(String driverType) {
		this.driverType = driverType;
	}
	
	
	
}